package com.hzvictory.hotel_system.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;
/**
 * 功能
 * 作者：何征
 * 日期：2025/7/23 22:21
 */
/**
 * 房间订单对象 roomorder
 *
 * @author ruoyi
 * @date 2025-07-23
 */
public class Roomorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    //@Excel(name = "用户ID")
    private Long userId;

    /** 房间ID */
   // @Excel(name = "房间ID")
    private Long roomId;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate checkInDate;

    /** 退房日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "退房日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate checkOutDate;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate orderTime;

    /** 订单状态：1待支付，2已支付，3已取消，4已完成 */
    //@Excel(name = "订单状态：1待支付，2已支付，3已取消，4已完成")
    private Long status;

    /** 总价 */
    //@Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 支付方式 */
    //@Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate paymentTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setRoomId(Long roomId)
    {
        this.roomId = roomId;
    }

    public Long getRoomId()
    {
        return roomId;
    }

    public void setCheckInDate(LocalDate checkInDate)
    {
        this.checkInDate = checkInDate;
    }

    public LocalDate getCheckInDate()
    {
        return checkInDate;
    }

    public void setCheckOutDate(LocalDate checkOutDate)
    {
        this.checkOutDate = checkOutDate;
    }

    public LocalDate getCheckOutDate()
    {
        return checkOutDate;
    }

    public void setOrderTime(LocalDate orderTime)
    {
        this.orderTime = orderTime;
    }

    public LocalDate getOrderTime()
    {
        return orderTime;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }

    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }

    public void setPaymentTime(LocalDate paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public LocalDate getPaymentTime()
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("roomId", getRoomId())
                .append("checkInDate", getCheckInDate())
                .append("checkOutDate", getCheckOutDate())
                .append("orderTime", getOrderTime())
                .append("status", getStatus())
                .append("totalPrice", getTotalPrice())
                .append("paymentMethod", getPaymentMethod())
                .append("paymentTime", getPaymentTime())
                .toString();
    }
}
